package com.autcar.training.service;

import com.autcar.training.entity.Worker;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: training
 * @Package: com.autcar.training.service
 * @ClassName: WorkerService
 * @Author: YHHHH
 * @Description: 员工CRUD接口
 * @Date: 2020/8/28 23:34
 * @Version: 1.0
 */
@Service
public interface WorkerService {
    //查询员工
    List<Worker> findAllWorker();

    //增加员工
    int addWorker(Worker worker);

    //删除员工
    int deleteWorkerById(Integer id);

    //更新员工
    int updateWorker(Worker worker);

    //根据名字模糊查询员工
    List<Worker> findByName(String name);

    //根据工号找员共;
    Worker findById(Integer id);
}
